//
//  psztViewController.m
//  随便点
//
//  Created by MWJ on 15/4/8.
//  Copyright (c) 2015年 qfsoft. All rights reserved.
//

#import "psztViewController.h"
#import "AppDelegate.h"

@interface psztViewController (){
    AppDelegate *app;
    NSString *qianz;
    NSString *zhifu;
}

@end

@implementation psztViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    app = (AppDelegate *)[[UIApplication sharedApplication]delegate];
    if ([app.pd isEqual:@"支付宝"]) {
        qianz = @"http://www.51anys.com/Wap_ToAlipay.aspx?oid=";
    }else if ([app.pd isEqual:@"建设网友支付"]){
    qianz = @"http://www.51anys.com/PCWaiMai/OnlinePay/onlineToCCB.aspx?oid=";
    }else{
        qianz = @"http://51anys.com/PCWaiMai/PC_Map.aspx?OrderId=";
    }
    if ([app.psid isEqualToString:@""]||app.psid == nil) {
        zhifu = [NSString stringWithFormat:@"%@%@",qianz,app.xhlddid];
    }else{
        zhifu = [NSString stringWithFormat:@"%@%@",qianz,app.psid];
    }
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:zhifu]];
    [self.psztweb loadRequest:request];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
@end
